<?php
    $sitedata['title'] = 'SI TV | Login';
    $this->load->view('template/header');
?>
            <h1>Login</h1>
            <?= form_open('auth/login','name="login_form"'); ?>
             <table>
                 <tr>
                     <td>Username</td>
                     <td><input type="text" name="namefield" placeholder="Username" ></td>
                 </tr>
                 <tr>
                     <td></td>
                     <td><?php echo form_error('namefield');?></td>
                 </tr>
                 <tr>
                     <td>Password</td>
                     <td><input type="password" name="passfield" placeholder="Password" ></td>
                 </tr>
                 <tr>
                     <td></td>
                     <td><?php echo form_error('passfield');?> </td>
                 </tr>
                 <tr>
                     <td></td>
                     <td><input type="submit" value="Login" id="loginButton"></td>
                 </tr>
             </table>
            <?= form_close(); ?>
<?php
    $this->load->view('template/footer');
?>